package com.sam.im.heiqun.uis.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.sam.im.heiqun.R;
import com.sam.im.heiqun.utils.ToolsUtils;
import com.yuyh.library.uis.activitys.BaseSwipeBackActivity;

import butterknife.BindView;
import butterknife.OnClick;


/**
 * Created by wangguodong on 2017/9/6.
 */
public class LaboratoryActivity extends BaseSwipeBackActivity {

    @BindView(R.id.relative_look)
    RelativeLayout relative_look;
    @BindView(R.id.relative_search)
    RelativeLayout relative_search;

    public static void start(Activity activity ){
        Intent intent = new Intent(activity, LaboratoryActivity.class);
        activity.startActivity(intent);
    }

    @Override
    protected String getTitleText() {
        return getResources().getString(R.string.laboratory);
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {

    }

    @Override
    public int getContentViewId() {
        return R.layout.activity_laboratory;
    }


    @OnClick({R.id.relative_look, R.id.relative_search})
    public void onClick(View view) {
        Intent intent;
        switch (view.getId()) {
            case R.id.pre_v_back:
                scrollToFinishActivity();
                break;
            case R.id.relative_look:
                LaboratoryLookActivity.start(LaboratoryActivity.this,0);
                break;
            case R.id.relative_search:
                LaboratoryLookActivity.start(LaboratoryActivity.this,1);
                break;
        }
    }

}
